package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author WEN
 * @Date 2024/1/26 0026
 **/
@Data
@ApiModel("工单归档对象")
public class OrderArchivedVo {
    @NotNull(message = "归档的工单不能为空")
    @Size(min = 1, message = "至少要选择一条工单归档")
    @ApiModelProperty(value = "工单ID")
    private List<Long> workIds;

    @Length(max = 100, message = "归档备注长度限制 100 个字符以内")
    @ApiModelProperty(value = "归档备注")
    private String remark;
}
